<?php
//+----------------------------------------------------
//| 工具类: Http请求验证工具类
//| Author: web_dxj@163.com
//+----------------------------------------------------

namespace Api\Libs;

class HttpVerifyUtil {


    /**
     * 验证表单参数是否为空
     * @param $params
     * @return bool
     */
    public static function verifyFormParamNotNull($params) {

        if (!is_array($params) && ($params === '' || $params === null)) {
            return '100001';
        } else {
            foreach ($params as $val) {
                if ($val === '' || $val === null) {
                    return '100002';
                }
            }
        }
        return '000000';
    }

}